﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using SAAS.ServiceImpl;

namespace SAAS.ConsoleHost
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                List<ServiceHost> hosts = new List<ServiceHost>();
                hosts.Add(new ServiceHost(typeof(FileManager)));

                hosts.ForEach(host => host.Open());

                Console.WriteLine("All services are started...");
                Console.Read();
            }
            catch (Exception e)
            {
                Console.WriteLine("Error:" + e.ToString());
                Console.Read();
            }
        }
    }
}
